package com.oocl.scan.utils;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;

public class XMLUtil {

  public static Document parseXmlToDocument(String filePath) {
    Document document = null;
    try {
      document = new SAXReader().read(filePath);
    } catch (DocumentException e) {
      e.printStackTrace();
    }
    return document;
  }

}
